#coding=utf8
#from worlds.world import World
from actors.worldactor import WorldActor
from random import Random

class WorldWalker(WorldActor):
    
    def __init__(self, *args, **kargs):
        self.actions = (self.to_left, self.to_right, 
             self.forward, self.forward, self.forward, 
             )
        #print args
        #print kargs
        WorldActor.__init__(self, *args, **kargs)
    
    def act(self):
        action = Random().choice(self.actions)
        print '%s does %s' % (self.id, action.__name__)
        action()
    